package org.arrow.db.pojo;

import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;

/**
 * UserDeptJoin entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "user_dept_join", catalog = "hip_spr_tap", uniqueConstraints = {
		@UniqueConstraint(columnNames = "DEPT_ID"),
		@UniqueConstraint(columnNames = "TITLE_ID"),
		@UniqueConstraint(columnNames = "USER_ID") })
public class UserDeptJoin implements java.io.Serializable {

	// Fields

	private Long joinId;
	private Long userId;
	private Long titleId;
	private Long deptId;
	private Timestamp createDate;

	// Constructors

	/** default constructor */
	public UserDeptJoin() {
	}

	/** full constructor */
	public UserDeptJoin(Long joinId, Long userId, Long titleId, Long deptId,
			Timestamp createDate) {
		this.joinId = joinId;
		this.userId = userId;
		this.titleId = titleId;
		this.deptId = deptId;
		this.createDate = createDate;
	}

	// Property accessors
	@Id
	@Column(name = "JOIN_ID", unique = true, nullable = false)
	public Long getJoinId() {
		return this.joinId;
	}

	public void setJoinId(Long joinId) {
		this.joinId = joinId;
	}

	@Column(name = "USER_ID", unique = true, nullable = false)
	public Long getUserId() {
		return this.userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	@Column(name = "TITLE_ID", unique = true, nullable = false)
	public Long getTitleId() {
		return this.titleId;
	}

	public void setTitleId(Long titleId) {
		this.titleId = titleId;
	}

	@Column(name = "DEPT_ID", unique = true, nullable = false)
	public Long getDeptId() {
		return this.deptId;
	}

	public void setDeptId(Long deptId) {
		this.deptId = deptId;
	}

	@Column(name = "CREATE_DATE", nullable = false, length = 19)
	public Timestamp getCreateDate() {
		return this.createDate;
	}

	public void setCreateDate(Timestamp createDate) {
		this.createDate = createDate;
	}

}